package com.ruoyi.ora.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备通讯记录，考虑分对象 ora_device_record
 * 
 * @author liuwp
 * @date 2024-11-14
 */
public class DeviceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 下行报文 */
    @Excel(name = "下行报文")
    private String reqBytes;

    /** 上行报文 */
    @Excel(name = "上行报文")
    private String respBytes;

    /** 记录类型 */
    @Excel(name = "记录类型", dictType = "ora_device_record_type")
    private Integer recordType;

    /** 记录状态 */
    @Excel(name = "记录状态", dictType = "ora_device_record_status")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setReqBytes(String reqBytes) 
    {
        this.reqBytes = reqBytes;
    }

    public String getReqBytes() 
    {
        return reqBytes;
    }
    public void setRespBytes(String respBytes) 
    {
        this.respBytes = respBytes;
    }

    public String getRespBytes() 
    {
        return respBytes;
    }
    public void setRecordType(Integer recordType) 
    {
        this.recordType = recordType;
    }

    public Integer getRecordType() 
    {
        return recordType;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("createTime", getCreateTime())
            .append("reqBytes", getReqBytes())
            .append("respBytes", getRespBytes())
            .append("recordType", getRecordType())
            .append("status", getStatus())
            .toString();
    }
}
